package com.zhongwang.mms.module.tool.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhongwang.mms.base.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 工具库台账表
 * @Author: 闫薇
 */
@SuppressWarnings("ALL")
@Data
@EqualsAndHashCode(callSuper = true)
public class ReportAccToolModel  extends BaseModel {
    /** 主键 */
    @ExcelIgnore
    private Integer toolId;
    @ExcelProperty(value = "厂内编号",index = 1)
    private String toolCode;
    @ExcelProperty(value = "工具名称",index = 2)
    private String toolName;
    @ExcelProperty(value = "规格型号",index = 3)
    private String toolSat;
    @ExcelProperty(value = "出厂编号",index = 4)
    private String toolOutCode;
    @ExcelProperty(value = "数量",index = 5)
    private String toolNum;
    @ExcelProperty(value = "品牌",index = 6)
    private String toolBra;
    @ExcelProperty(value = "精度",index = 7)
    private String toolFlot;
    @ExcelProperty(value = "生产日期",index = 8)
    private String toolProDate;
    @ExcelProperty(value = "使用人",index = 9)
    private String toolLble;
    @ExcelProperty(value = "厂牌号",index = 10)
    private String toolUserCode;
    @ExcelProperty(value = "领用时间",index = 11)
    private String toolColDate;
    @ExcelProperty(value = "跟踪号",index = 12)
    private String toolFollow;
    @ExcelProperty(value = "用途",index = 13)
    private String toolPur;
    @ExcelProperty(value = "状态",index = 14)
    private String toolStatus;
    @ExcelProperty(value = "所属部门",index = 15)
    private String toolWork;
    @ExcelProperty(value = "变更信息",index = 16)
    private String toolChange;
    @ExcelProperty(value = "备注",index = 17)
    private String toolRemark;

    /** 删除状态 */
    @ExcelIgnore
    private Integer toolIsdelete;
    /** 排序的编号 */
    @ExcelIgnore
    private Integer toolSortNum;
    /** 创建人 */
    @ExcelIgnore
    private String toolCreUser;
    /** 创建时间 */
    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date toolCreDate;
    /** 最后一次编辑人 */
    @ExcelIgnore
    private String toolUpdUser;
    /** 最后一次编辑时间 */
    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date toolUpdDate;

    @ExcelProperty(value = "序号",index = 0)
    private String tempId;

    //类型id-外键2020.6.20
    private Integer fkTypeId;
    //月份2020.6.20
    private String toolMonth;
    //月份2020.6.20
    private String typName;
}
